const CACHE_PREFIX = 'app_';
export const setStorage = (key, values) => {
  localStorage.setItem(CACHE_PREFIX + key, JSON.stringify(values));
};

export const getStorage = (key, defaultValue = '') => {
  return JSON.parse(localStorage.getItem(CACHE_PREFIX + key)) || defaultValue;
};

export const removeStorage = (key) => {
  localStorage.removeItem(CACHE_PREFIX + key);
};
